<%@include file="/init.jsp" %>
<%@page import="com.caresms.service.Country_MasterLocalServiceUtil"%>
<%@page import="com.caresms.service.City_MasterLocalServiceUtil"%>
<%@page import="com.caresms.model.Country_Master"%>
<%@page import="com.caresms.model.City_Master"%>
<jsp:useBean id="editcity" type="com.caresms.model.City_Master" scope="request" />
<portlet:actionURL name="updatecityURL" var="editcityURL">
</portlet:actionURL>
<%

List<City_Master> cityL=City_MasterLocalServiceUtil.getCity_Masters(-1,-1);
Country_Master cl=Country_MasterLocalServiceUtil.getCountry_Master(editcity.getCountryId());
%>
<aui:form  method="post" action="<%=editcityURL.toString() %>">
<aui:input name="edit" value="<%=editcity.getCityId() %>" type="hidden" />
<aui:select name="countryname">

<aui:option value="<%=editcity.getCountryId() %>"><%=cl.getCountryName() %></aui:option>

</aui:select>
<aui:input name="city" type="textarea" label="City" id="city" value="<%=editcity.getCityName() %>">
<aui:validator name="required" errorMessage="this field is requred"></aui:validator>
</aui:input>
<aui:button type="submit" value="Save" cssClass="submitbtn"></aui:button>
</aui:form>